package com.j.lemon.learn.basic;


import com.j.lemon.learn.basic.thread.Student;

public class designModal {
    public designModal(){}
    public volatile static Student student=null;
    public static Student getInstance(){
        if(student==null){
            synchronized (designModal.class){
                if(student==null){
                    student=new Student();
                }
            }
        }
        return student;
    }

}
